<!DOCTYPE html>
<html lang="en" xmlns:v-if="http://www.w3.org/1999/xhtml" xmlns:v-elseif="http://www.w3.org/1999/xhtml"
      xmlns:v-else="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/html.js"></script>
</head>
<body>
<div id="nb">
    <span style="color: chartreuse">遍历值</span>
    <ul>
        <li v-for="content in arr">{{content}}</li>
    </ul>
    <span style="color: red">遍历值-索引</span>
    <ul>
        <li v-for="(content,index) in arr">{{content}}-{{index}}</li>
    </ul>
</div>
<script>
    var vue = new Vue({
        el:"#nb",
        data:{
            arr:["a","b","c","d"]
        }
    })
</script>

</body>
</html>